using System;
using System.Collections;
using System.Collections.Generic;

using QLKS.DataLayer.Base;

namespace QLKS.DataLayer.BusinessObjects
{
    public partial class CTPhieuThuePhong : BusinessBase<int>
    {
        #region Declarations

		
		private KhachHang _khachHang = null;
		private PhieuThuePhong _phieuThuePhong = null;
		private TinhTrang _tinhTrang = null;
		
		private IList<CTHoaDon> _cTHoaDons = new List<CTHoaDon>();
		
		#endregion

        #region Constructors

        public CTPhieuThuePhong() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual KhachHang KhachHang
        {
            get { return _khachHang; }
			set
			{
				OnKhachHangChanging();
				_khachHang = value;
				OnKhachHangChanged();
			}
        }
		partial void OnKhachHangChanging();
		partial void OnKhachHangChanged();
		
		public virtual PhieuThuePhong PhieuThuePhong
        {
            get { return _phieuThuePhong; }
			set
			{
				OnPhieuThuePhongChanging();
				_phieuThuePhong = value;
				OnPhieuThuePhongChanged();
			}
        }
		partial void OnPhieuThuePhongChanging();
		partial void OnPhieuThuePhongChanged();
		
		public virtual TinhTrang TinhTrang
        {
            get { return _tinhTrang; }
			set
			{
				OnTinhTrangChanging();
				_tinhTrang = value;
				OnTinhTrangChanged();
			}
        }
		partial void OnTinhTrangChanging();
		partial void OnTinhTrangChanged();
		
		public virtual IList<CTHoaDon> CTHoaDons
        {
            get { return _cTHoaDons; }
            set
			{
				OnCTHoaDonsChanging();
				_cTHoaDons = value;
				OnCTHoaDonsChanged();
			}
        }
		partial void OnCTHoaDonsChanging();
		partial void OnCTHoaDonsChanged();
		
        #endregion
    }
}
